package com.xjtu.duansheli.service;

import com.xjtu.duansheli.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.duansheli.entity.OrderInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 漩涡鸣人
 * @since 2020-10-24
 */
public interface OrderInfoService extends IService<OrderInfo> {
    public List<OrderInfo> getAllOrder(int current, int size);
    public OrderInfo getOrderByid(Long oid);
    public int addOrder(OrderInfo order);
    public int updateOrder(OrderInfo order);
    public int deleteOrder(Long oid);
    public List<OrderInfo> getOrderBypid(Long pid);
    public List<OrderInfo> getOrderBysaleId(Long sid);
    public List<OrderInfo> getOrderBybuyId(Long bid);
    public int getTotal();
    public List<OrderInfo> getOrderByendTime();
}
